package edu.hrbu.spring.service.impl;

import edu.hrbu.spring.mapper.UserMapper;
import edu.hrbu.spring.pojo.User;
import edu.hrbu.spring.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 徐登宇
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource(name = "userMapper")
    UserMapper userMapper;

    @Override
    public List<User> getAllUser() {
        return userMapper.selectUserList();
    }
}
